import asyncio
import websockets
from gameServer import GameServer

mainGameServer = GameServer()

async def handleWebsocket(websocket, path):
    await mainGameServer.handleWebsocket(websocket, path)

ip = "0.0.0.0"
port = 13140

startServer = websockets.serve(handleWebsocket, ip, port)
print(f"Server started at {ip}:{port}")

asyncio.get_event_loop().run_until_complete(startServer)
asyncio.get_event_loop().run_forever()
